package com.foreknow.elm.controller;

import com.foreknow.elm.service.BusinessService;
import com.foreknow.elm.service.impl.BusinessServiceImpl;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 啊滨
 * @date 2023/2/13 13:49
 */
public class BusinessController {
    public  Object listBusinessByOrderTypeId(HttpServletRequest request){
        int orderTypeId = Integer.parseInt(request.getParameter("orderTypeId"));
        BusinessService service=new BusinessServiceImpl();
        return service.listBusinessByOrderTypeId(orderTypeId);
    }

    public  Object getBusinessById(HttpServletRequest request){
        int businessId = Integer.parseInt(request.getParameter("businessId"));
        BusinessService service=new BusinessServiceImpl();
        return service.getBusinessById(businessId);
    }


}
